
package com.zsrt.day0523.jdbc.ch01.impl;

import com.zsrt.day0523.jdbc.ch01.dao.EmployeeDao;
import com.zsrt.day0523.jdbc.ch01.dao.Factory;

public class FactoryImpl implements Factory{

	@Override
	public EmployeeDao inistance(int type) {
		if(type==3306){
			EmployeeDao dao =new  EmployeeSqlImpl();
			return dao;
			
		}else{
			EmployeeDao dao =new  EmployeeOracleImpl();
			return dao;
		}
		
	
	}


	
}
